// vue.config.js
module.exports = {
    devServer: {
      proxy: {
        '/api': {
          target: 'http://localhost:8080/', //对应自己的接口
          changeOrigin: true,
          ws: true,
          pathRewrite: {
            '^/api': '/js'
          }
        }
      },
      // open: process.platform === 'darwin',
      // host: '112.98.189.36',// 填写本机IP地址 mac: ifconfig en0
      // //port: 8080,
      
    }
  }